parameter &quot;self&quot; of method &quot;foo&quot;
Inferred type: A
